package com.king.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * @author KING
 * @date 2018/8/30 17:52
 */
@SpringBootApplication
public class SecurityApp {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SecurityApp.class, args);
        ConfigurableEnvironment environment = context.getEnvironment();
        String property = environment.getProperty("server.port");
        System.out.println("项目启动完毕....访问地址: http://127.0.0.1:" + property + "/login");
    }
}
